<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>N3RD CH4T: Client Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">N3RD CH4T
   &#160;<span id="projectnumber">Final Version</span>
   </div>
   <div id="projectbrief">CS340 Project</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Client Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Client" -->
<p>The <a class="el" href="class_client.html" title="The Client helper methods.">Client</a> helper methods.  
 <a href="class_client.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="client_8h_source.html">client.h</a>&gt;</code></p>

<p><a href="class_client-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29a650ba41d4fc143b39c00e73047e60"></a><!-- doxytag: member="Client::sendUserInformation" ref="a29a650ba41d4fc143b39c00e73047e60" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a29a650ba41d4fc143b39c00e73047e60">sendUserInformation</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that sends all the user information to the server. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acfd4db27c0fec82a26e4d112b585b534"></a><!-- doxytag: member="Client::readyRead" ref="acfd4db27c0fec82a26e4d112b585b534" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#acfd4db27c0fec82a26e4d112b585b534">readyRead</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that receives messages from the server. <br/></td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a4de68f2ebb2fb0601b57cf785686594a">usernameValidConfirmation</a> (QString, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal that verifies the username.  <a href="#a4de68f2ebb2fb0601b57cf785686594a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#aa12dc1c3a721a7d0bbd341d617bef834">friendExistsConfirmation</a> (QString, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal that verifies if a friend exists.  <a href="#aa12dc1c3a721a7d0bbd341d617bef834"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a0a9e90059f470c13bd0d80b297007426">friendRemoveExistsConfirmation</a> (QString, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal that verifies if a friend exists to be removed.  <a href="#a0a9e90059f470c13bd0d80b297007426"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#af8865e73456733682c8796f32256a2c5">signalUsers</a> (QStringList)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal that sends the list of users.  <a href="#af8865e73456733682c8796f32256a2c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a45777f50a03af371db0ca9be4d65d42c">receiveMessage</a> (QString, QString, QString, QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot that receives the message.  <a href="#a45777f50a03af371db0ca9be4d65d42c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#acda171c02ce4abc3161cf1ffc99cf1d9">friendRequest</a> (QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal that sends out a friend request.  <a href="#acda171c02ce4abc3161cf1ffc99cf1d9"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a67b6b47afd0b3036ba2bb42bb206adab">Client</a> (QString <a class="el" href="class_client.html#a6fa0bad86c4de7169b1cdc7775bcdb9e">address</a>, quint16 <a class="el" href="class_client.html#a955368517c3df7db98439442267a603c">port</a>, QString <a class="el" href="class_client.html#aabaf912148bc9f464b7cbaa16584ffa6">userName</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7a0fd3f7ee22707e9a551a997c7135c"></a><!-- doxytag: member="Client::startClient" ref="ae7a0fd3f7ee22707e9a551a997c7135c" args="()" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#ae7a0fd3f7ee22707e9a551a997c7135c">startClient</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Boolean method that returns a successful or failed connection. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a0b872012d2a974af9bb6e53a999b21aa">getUserName</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the clients username.  <a href="#a0b872012d2a974af9bb6e53a999b21aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#af040dd062cd74992c0eb7f4396611422">getAddress</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the clients host address.  <a href="#af040dd062cd74992c0eb7f4396611422"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">quint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a7e92f41d3a0f1c0cde89a02d1eeb2a2a">getPort</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the clients port.  <a href="#a7e92f41d3a0f1c0cde89a02d1eeb2a2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a3229de7d5cb5663f39ea1f0ed783c4d8">getMessage</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that receives the message from the client.  <a href="#a3229de7d5cb5663f39ea1f0ed783c4d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QStringList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a7f6bbe8ce1a9bc59ff62f36e20e5a774">getOnlineList</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the users that are online.  <a href="#a7f6bbe8ce1a9bc59ff62f36e20e5a774"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QTcpSocket *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a11e6fc8ed2cdd2a1e266df6c62394cfc">getClient</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that gets the clients QTcpSocket.  <a href="#a11e6fc8ed2cdd2a1e266df6c62394cfc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a5f4363d2e77253aefeab670779bf60cf">sendMessage</a> (QString, QString, QString, QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method that sends the message.  <a href="#a5f4363d2e77253aefeab670779bf60cf"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#aad6b45227b92d358869f5bb9b6e5cae7">handleOutgoingFriendRequest</a> (QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot that deals with the user wanting to send a friend request.  <a href="#aad6b45227b92d358869f5bb9b6e5cae7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a80e6af37a0649f4b9c01e6cfc504103e">handleFriendRemoveRequest</a> (QString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot that deals with the user wanting to remove a friend.  <a href="#a80e6af37a0649f4b9c01e6cfc504103e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a2181e7e27fa6c160493e5c3826d2950e">handleFriendRequestConfirmation</a> (QString, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot that handles a friend request confirmation from the user.  <a href="#a2181e7e27fa6c160493e5c3826d2950e"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a87e8275b86c4d344832374d9bf4aaf7f"></a><!-- doxytag: member="Client::client" ref="a87e8275b86c4d344832374d9bf4aaf7f" args="" -->
QTcpSocket *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a87e8275b86c4d344832374d9bf4aaf7f">client</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a client instance variable. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a955368517c3df7db98439442267a603c"></a><!-- doxytag: member="Client::port" ref="a955368517c3df7db98439442267a603c" args="" -->
quint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a955368517c3df7db98439442267a603c">port</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a port variable. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aabaf912148bc9f464b7cbaa16584ffa6"></a><!-- doxytag: member="Client::userName" ref="aabaf912148bc9f464b7cbaa16584ffa6" args="" -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#aabaf912148bc9f464b7cbaa16584ffa6">userName</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a string username variable. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5c9dc626ad8d7766c9b583f77fbaad9"></a><!-- doxytag: member="Client::message" ref="ae5c9dc626ad8d7766c9b583f77fbaad9" args="" -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#ae5c9dc626ad8d7766c9b583f77fbaad9">message</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a string message variable. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6fa0bad86c4de7169b1cdc7775bcdb9e"></a><!-- doxytag: member="Client::address" ref="a6fa0bad86c4de7169b1cdc7775bcdb9e" args="" -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a6fa0bad86c4de7169b1cdc7775bcdb9e">address</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">IP address variable. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a678440a249d44a37cdf7d06fafc973cc"></a><!-- doxytag: member="Client::onlineUsers" ref="a678440a249d44a37cdf7d06fafc973cc" args="" -->
QStringList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a678440a249d44a37cdf7d06fafc973cc">onlineUsers</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">List of friends online variable. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_client.html" title="The Client helper methods.">Client</a> helper methods. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a67b6b47afd0b3036ba2bb42bb206adab"></a><!-- doxytag: member="Client::Client" ref="a67b6b47afd0b3036ba2bb42bb206adab" args="(QString address, quint16 port, QString userName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Client::Client </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">quint16&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>userName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">address</td><td>The address of the user </td></tr>
    <tr><td class="paramname">port</td><td>The port number of the user </td></tr>
    <tr><td class="paramname">userName</td><td>The username of the client </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa12dc1c3a721a7d0bbd341d617bef834"></a><!-- doxytag: member="Client::friendExistsConfirmation" ref="aa12dc1c3a721a7d0bbd341d617bef834" args="(QString, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::friendExistsConfirmation </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal that verifies if a friend exists. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">friendToBeAdded</td><td>The username of the friend </td></tr>
    <tr><td class="paramname">isConfirmed</td><td>The boolean value of the confirmation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0a9e90059f470c13bd0d80b297007426"></a><!-- doxytag: member="Client::friendRemoveExistsConfirmation" ref="a0a9e90059f470c13bd0d80b297007426" args="(QString, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::friendRemoveExistsConfirmation </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal that verifies if a friend exists to be removed. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">friendToBeRemoved</td><td>The username of the friend to be removed </td></tr>
    <tr><td class="paramname">isConfirmed</td><td>The boolean value of the confirmation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acda171c02ce4abc3161cf1ffc99cf1d9"></a><!-- doxytag: member="Client::friendRequest" ref="acda171c02ce4abc3161cf1ffc99cf1d9" args="(QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::friendRequest </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal that sends out a friend request. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">requestingUser</td><td>The username of the friend requesting the add action </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af040dd062cd74992c0eb7f4396611422"></a><!-- doxytag: member="Client::getAddress" ref="af040dd062cd74992c0eb7f4396611422" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Client::getAddress </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the clients host address. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The clients host address </dd></dl>

</div>
</div>
<a class="anchor" id="a11e6fc8ed2cdd2a1e266df6c62394cfc"></a><!-- doxytag: member="Client::getClient" ref="a11e6fc8ed2cdd2a1e266df6c62394cfc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTcpSocket * Client::getClient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the clients QTcpSocket. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The client value </dd></dl>

</div>
</div>
<a class="anchor" id="a3229de7d5cb5663f39ea1f0ed783c4d8"></a><!-- doxytag: member="Client::getMessage" ref="a3229de7d5cb5663f39ea1f0ed783c4d8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Client::getMessage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that receives the message from the client. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The message from the client </dd></dl>

</div>
</div>
<a class="anchor" id="a7f6bbe8ce1a9bc59ff62f36e20e5a774"></a><!-- doxytag: member="Client::getOnlineList" ref="a7f6bbe8ce1a9bc59ff62f36e20e5a774" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList Client::getOnlineList </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the users that are online. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of online users </dd></dl>

</div>
</div>
<a class="anchor" id="a7e92f41d3a0f1c0cde89a02d1eeb2a2a"></a><!-- doxytag: member="Client::getPort" ref="a7e92f41d3a0f1c0cde89a02d1eeb2a2a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">quint16 Client::getPort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the clients port. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The clients port </dd></dl>

</div>
</div>
<a class="anchor" id="a0b872012d2a974af9bb6e53a999b21aa"></a><!-- doxytag: member="Client::getUserName" ref="a0b872012d2a974af9bb6e53a999b21aa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Client::getUserName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that gets the clients username. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The clients username </dd></dl>

</div>
</div>
<a class="anchor" id="a80e6af37a0649f4b9c01e6cfc504103e"></a><!-- doxytag: member="Client::handleFriendRemoveRequest" ref="a80e6af37a0649f4b9c01e6cfc504103e" args="(QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::handleFriendRemoveRequest </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personToRemove</em></td><td>)</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot that deals with the user wanting to remove a friend. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personToRemove</td><td>The username of the friend to be removed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2181e7e27fa6c160493e5c3826d2950e"></a><!-- doxytag: member="Client::handleFriendRequestConfirmation" ref="a2181e7e27fa6c160493e5c3826d2950e" args="(QString, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::handleFriendRequestConfirmation </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>personRequesting</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isFriend</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot that handles a friend request confirmation from the user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">personRequesting</td><td>The username of the user requesting a friend </td></tr>
    <tr><td class="paramname">isFriend</td><td>Boolean value to check if the user is already a friend </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aad6b45227b92d358869f5bb9b6e5cae7"></a><!-- doxytag: member="Client::handleOutgoingFriendRequest" ref="aad6b45227b92d358869f5bb9b6e5cae7" args="(QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::handleOutgoingFriendRequest </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>buddy</em></td><td>)</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot that deals with the user wanting to send a friend request. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">buddy</td><td>The username of the friend requesting the add action </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a45777f50a03af371db0ca9be4d65d42c"></a><!-- doxytag: member="Client::receiveMessage" ref="a45777f50a03af371db0ca9be4d65d42c" args="(QString, QString, QString, QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::receiveMessage </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot that receives the message. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fromUser</td><td>the name of the user who sent message </td></tr>
    <tr><td class="paramname">toUser</td><td>the name of the user receiving the message </td></tr>
    <tr><td class="paramname">message</td><td>the message being sent </td></tr>
    <tr><td class="paramname">timeSent</td><td>the time in which the message was sent </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5f4363d2e77253aefeab670779bf60cf"></a><!-- doxytag: member="Client::sendMessage" ref="a5f4363d2e77253aefeab670779bf60cf" args="(QString, QString, QString, QString)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::sendMessage </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>fromUsername</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>toUsername</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>timeSent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method that sends the message. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fromUsername</td><td>The from user </td></tr>
    <tr><td class="paramname">toUsername</td><td>The to user </td></tr>
    <tr><td class="paramname">message</td><td>The chat message </td></tr>
    <tr><td class="paramname">timeSent</td><td>The time the message was sent </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af8865e73456733682c8796f32256a2c5"></a><!-- doxytag: member="Client::signalUsers" ref="af8865e73456733682c8796f32256a2c5" args="(QStringList)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::signalUsers </td>
          <td>(</td>
          <td class="paramtype">QStringList&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal that sends the list of users. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">updatedListOfUsersOnline</td><td>The updated list of available online users </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4de68f2ebb2fb0601b57cf785686594a"></a><!-- doxytag: member="Client::usernameValidConfirmation" ref="a4de68f2ebb2fb0601b57cf785686594a" args="(QString, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::usernameValidConfirmation </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal that verifies the username. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">userName</td><td>The userName to be verified </td></tr>
    <tr><td class="paramname">isConfirmed</td><td>The boolean value of the client </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/<a class="el" href="client_8h_source.html">client.h</a></li>
<li>/Users/plamontagna/Documents/spa-cs340project/im_client_v2/<a class="el" href="client_8cpp.html">client.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 23:53:09 for N3RD CH4T by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
